/**
 * Project Name:springmvc
 * File Name:BaseController.java
 * Package Name:cn.springmvc.controller
 * Date:2016年6月14日下午11:09:39
 * Copyright (c) 2016,  All Rights Reserved.
 *
*/

package cn.springmvc.controller;

import javax.servlet.http.HttpServletRequest;

import common.CommonStant;

/**
 * ClassName:BaseController <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2016年6月14日 下午11:09:39 <br/>
 * @author   i1093108915@yeah.net
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
public class BaseController {

	/**
	 * checkOnline:(校验是否在线). <br/>
	 *
	 * @author i1093108915@yeah.net
	 * @param request
	 * @return
	 * @since JDK 1.6
	 */
	public boolean checkOnline(HttpServletRequest request) {
		if (request.getSession().getAttribute(CommonStant.LOGIN_ONLINE)==null) {
			return false;
		}
		return true;
	}
}

